package com.spzx.common.rabbitmq.domain;

import lombok.Data;
import org.springframework.amqp.rabbit.connection.CorrelationData;

@Data
public class SpzxMqCorrelationData extends CorrelationData {

    private String exchange;//发送消息的交换机
    private String routingKey;//消息的路由key
    private Object message;//消息内容
    private boolean isRetry = true;//是否重试
    private int retryLimit = 3;//最大支持的重试次数
    private int retryCount = 0;//已经发送的次数

}
